# -*- coding:utf-8 -*-
import os

from csv2code import GenerateError

class Generator(object):
	@property
	def name(self):
		return 'generator for python.'
	
	def process(self, mid_result):
		return 'hello, world'

	def output_path(self, output_dir, csv_file):
		root, ext = os.path.splitext(csv_file)
		output_file = '.'.join([root, 'py'])
		return output_file

